import { lazyPage as lazy } from '@utils';

const publicPath = `/${process.env.APP_NAME}`;

export default [
  {
    key: 'workflows',
    path: `${publicPath}/workflows`,
    title: 'Workflows',
    component: lazy(() => import(/* webpackChunkName: "workflows" */ '@views/workflows')),
    routes: [
      {
        path: `${publicPath}/workflows/details`,
        title: 'Workflows Details',
        component: lazy(
          () => import(/* webpackChunkName: "workflows-details" */ '@views/workflows/details')
        )
      }
    ]
  },
  {
    key: 'tools',
    path: `${publicPath}/tools`,
    title: 'Tools',
    component: lazy(() => import(/* webpackChunkName: "tools" */ '@views/tools')),
    routes: [
      {
        path: `${publicPath}/tools/details`,
        title: 'Tools Details',
        component: lazy(
          () => import(/* webpackChunkName: "tools-details" */ '@views/tools/details')
        )
      }
    ]
  }
];
